package businessLogic.service;

/**
 *
 * @author Alexander
 */
public class ServiceFactory {
    
    private static ServiceFactory instance;
    
    private ServiceFactory(){
        
    }
    
    public UserService getUserService(int id) {
        return new UserService(id);
    }
    
    public static synchronized ServiceFactory getInstance(){
        if(instance == null){
            instance = new ServiceFactory();
        } 
        return instance;
    }
    
}
